dnl# -*- mode:sh; sh-basic-offset:2; indent-tabs-mode:nil -*-
dnl#
dnl# the "configure" script is made from this by running GNU "autoconf"
dnl#
dnl# Configuration script for godemool
dnl#
dnl# by ben "boin" bonoeil

AC_INIT(
  [godemool],
  [0.2.0],
  [https://code.google.com/p/boin-srcds-tools/issues/],
  [boin-godemool],
  [https://code.google.com/p/boin-srcds-tools/])

AM_INIT_AUTOMAKE([foreign 1.14 silent-rules dist-xz subdir-objects])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX

AC_ARG_ENABLE(
  [ieee754],
  [AS_HELP_STRING([--enable-ieee754],
      [host support ieee754 floating-point standard  @<:@default=yes@:>@])],
  [],[enable_ieee754=yes])
AS_IF([test "x[$]enable_ieee754" != xyes],
      [AC_DEFINE([NO_IEEE754],[1],[Host do not support native IEEE754 float])])

AC_CHECK_HEADERS([unistd.h libgen.h math.h])
AC_CHECK_FUNCS_ONCE([getopt basename scalbn])
PKG_CHECK_MODULES([protobuf],[protobuf = 2.5.0])
PKG_CHECK_MODULES([tinyxml],[tinyxml2 >= 2.0.0])

AC_CONFIG_FILES([Makefile godemool/Makefile ieee754/Makefile])
AC_OUTPUT
